package com.crm.pojo;

import java.io.Serializable;
import javax.persistence.*;

import com.alibaba.fastjson.annotation.JSONField;

import java.math.BigDecimal;
import java.sql.Timestamp;


/**
 * The persistent class for the CLIENT_TRANSFER database table.
 * 
 */
@Entity
@Table(name="CLIENT_TRANSFER")
@NamedQuery(name="ClientTransfer.findAll", query="SELECT c FROM ClientTransfer c")
public class ClientTransfer implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@SequenceGenerator(initialValue = 1, allocationSize = 1,name="CLIENT_TRANSFER_TRANSFERID_GENERATOR", sequenceName="SEQ1")
	@GeneratedValue(strategy=GenerationType.SEQUENCE, generator="CLIENT_TRANSFER_TRANSFERID_GENERATOR")
	private Long transferid;

	@Column(name="CLIENT_ID")
	private BigDecimal clientId;

	@Column(name="CLIENT_TRANSFER_IS_DEL")
	private String clientTransferIsDel;

	@Column(name="IN_CLIENT_ID")
	private BigDecimal inClientId;

	@Column(name="OPERATE_CLIENT_ID")
	private BigDecimal operateClientId;

	@Column(name="OPERATE_DATE")
	@JSONField(format="yyyy-MM-dd HH:mm:ss")
	private Timestamp operateDate;

	@Column(name="OUT_CLENT_ID")
	private BigDecimal outClentId;

	//bi-directional many-to-one association to ClientInfo
	@ManyToOne
	@JoinColumn(name="CID")
	private ClientInfo clientInfo;

	public ClientTransfer() {
	}

	public Long getTransferid() {
		return this.transferid;
	}

	public void setTransferid(Long transferid) {
		this.transferid = transferid;
	}

	public BigDecimal getClientId() {
		return this.clientId;
	}

	public void setClientId(BigDecimal clientId) {
		this.clientId = clientId;
	}

	public String getClientTransferIsDel() {
		return this.clientTransferIsDel;
	}

	public void setClientTransferIsDel(String clientTransferIsDel) {
		this.clientTransferIsDel = clientTransferIsDel;
	}

	public BigDecimal getInClientId() {
		return this.inClientId;
	}

	public void setInClientId(BigDecimal inClientId) {
		this.inClientId = inClientId;
	}

	public BigDecimal getOperateClientId() {
		return this.operateClientId;
	}

	public void setOperateClientId(BigDecimal operateClientId) {
		this.operateClientId = operateClientId;
	}

	public Timestamp getOperateDate() {
		return this.operateDate;
	}

	public void setOperateDate(Timestamp operateDate) {
		this.operateDate = operateDate;
	}

	public BigDecimal getOutClentId() {
		return this.outClentId;
	}

	public void setOutClentId(BigDecimal outClentId) {
		this.outClentId = outClentId;
	}

	public ClientInfo getClientInfo() {
		return this.clientInfo;
	}

	public void setClientInfo(ClientInfo clientInfo) {
		this.clientInfo = clientInfo;
	}

}